home *** CD-ROM | disk | FTP | other *** search
- //***************************************************************************
- //
- // this file is (c) '94-'96 Niklas Beisert
- //
- // this file is part of the cubic player development kit.
- // you may only use/modify/spread this file under the terms stated
- // in the cubic player development kit accompanying documentation.
- //
- //***************************************************************************
-
-
- #include <io.h>
- #include <stdlib.h>
- #include <string.h>
- #include "binfdel.h"
-
- delbinfile::delbinfile()
- {
- *delname=0;
- }
-
- int delbinfile::open(const char *name, int m)
- {
- *delname=0;
- int r=sbinfile::open(name, m);
- if (r)
- strcpy(delname, name);
- return r;
- }
-
- void delbinfile::close()
- {
- sbinfile::close();
- if (*delname)
- unlink(delname);
- *delname=0;
- }
-